package com.ye.personnel.mapper.dao;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ye.personnel.api.flow.*;
import com.ye.personnel.common.page.BasePageParam;
import com.ye.personnel.common.page.PageModel;
import com.ye.personnel.mapper.entity.GwyFlowPersonnel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: yeubo
 * @Date: 2024/1/2 18:41
 */
@Mapper
public interface PersonnelMapper {

    /**
     * 批量添加流程人员
     * @param list
     */
    void insertFlowPersonnel(@Param("list") List<GwyFlowPersonnel> list);

    /**
     * 流程列表
     * @param page
     * @param pageParam
     * @return
     */
    Page<FlowListVo> flowList(Page<FlowListVo> page, @Param("params") FlowListSearch pageParam);

    /**
     * 流程人员列表
     * @param flowId
     * @return
     */
    List<FlowPersonnelListVo> flowPersonnelList(@Param("flowId") String flowId);

    /**
     * 流程审核时间轴
     * @param flowId
     * @return
     */
    List<FlowHistoryListVo> flowHistoryList(@Param("flowId") String flowId);
}
